<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('商户费率绑定列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label style="width: 100px;">商户编号：</label>
                                <input type="text" name="merno"/>
                            </li>
                            <li>
                                <label style="width: 100px;">结算类型 0-D0、1-T1：</label>
                                <select name="settleType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label style="width: 100px;">卡类型 1：借记卡、2：贷记卡、3：预付费卡：</label>
                                <select name="cardType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label style="width: 100px;">类别 0-标准类、3-会员：</label>
                                <input type="text" name="merCategory"/>
                            </li>
                            <li>
                                <label style="width: 100px;">交易类型，H301  微信 H302 支付宝H303 银联二维码 H007,线下收单：</label>
                                <select name="msgtype">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label style="width: 100px;">费率代号：</label>
                                <input type="text" name="rateCode"/>
                            </li>
                            <li>
                                <label style="width: 100px;">附加费率代号：</label>
                                <input type="text" name="rateAffix"/>
                            </li>
                            <li>
                                <label style="width: 100px;">添加人：</label>
                                <input type="text" name="addMan"/>
                            </li>
                            <li>
                                <label style="width: 100px;">添加日期：</label>
                                <input type="text" name="addDate"/>
                            </li>
                            <li>
                                <label style="width: 100px;">添加时间：</label>
                                <input type="text" name="addTime"/>
                            </li>
                            <li>
                                <label style="width: 100px;">0 传统银行卡收单 1 银联云闪付 2-微信 3-支付宝 4-银联二维码：</label>
                                <select name="rateType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label style="width: 100px;">调价费率代号：</label>
                                <input type="text" name="tjRateCode"/>
                            </li>
                            <li>
                                <label style="width: 100px;">附加费是否调价 0-未调、1-已调：</label>
                                <input type="text" name="tjFj"/>
                            </li>
                            <li>
                                <label style="width: 100px;">垫资日息代号：</label>
                                <input type="text" name="rateDz"/>
                            </li>
                            <li>
                                <label style="width: 100px;">封顶值：</label>
                                <input type="text" name="armarkfd"/>
                            </li>
                            <li>
                                <label style="width: 100px;">交易金额起始：</label>
                                <input type="text" name="beginMoney"/>
                            </li>
                            <li>
                                <label style="width: 100px;">交易金额结束：</label>
                                <input type="text" name="endMoney"/>
                            </li>
                            <li>
                                <label style="width: 100px;">是否封顶 0费率 1封顶：</label>
                                <input type="text" name="isFd"/>
                            </li>
                            <li>
                                <label style="width: 10px;"></label>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="merchantInfo:merchantRate:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="merchantInfo:merchantRate:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="merchantInfo:merchantRate:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="merchantInfo:merchantRate:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table" class="table text-nowrap"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('merchantInfo:merchantRate:edit')}]];
        var removeFlag = [[${@permission.hasPermi('merchantInfo:merchantRate:remove')}]];
        var prefix = ctx + "merchantInfo/merchantRate";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "商户费率绑定",
                firstLoad:false,
                clickToSelect:true,
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键ID',
                    visible: false
                },
                {
                    field: 'merno',
                    title: '商户编号'
                },
                {
                    field: 'settleType',
                    title: '结算类型 0-D0、1-T1'
                },
                {
                    field: 'cardType',
                    title: '卡类型 1：借记卡、2：贷记卡、3：预付费卡'
                },
                {
                    field: 'merCategory',
                    title: '类别 0-标准类、3-会员'
                },
                {
                    field: 'msgtype',
                    title: '交易类型，H301  微信 H302 支付宝H303 银联二维码 H007,线下收单'
                },
                {
                    field: 'rateCode',
                    title: '费率代号'
                },
                {
                    field: 'rateAffix',
                    title: '附加费率代号'
                },
                {
                    field: 'addMan',
                    title: '添加人'
                },
                {
                    field: 'addDate',
                    title: '添加日期'
                },
                {
                    field: 'addTime',
                    title: '添加时间'
                },
                {
                    field: 'rateType',
                    title: '0 传统银行卡收单 1 银联云闪付 2-微信 3-支付宝 4-银联二维码'
                },
                {
                    field: 'tjRateCode',
                    title: '调价费率代号'
                },
                {
                    field: 'tjFj',
                    title: '附加费是否调价 0-未调、1-已调'
                },
                {
                    field: 'rateDz',
                    title: '垫资日息代号'
                },
                {
                    field: 'armarkfd',
                    title: '封顶值'
                },
                {
                    field: 'beginMoney',
                    title: '交易金额起始'
                },
                {
                    field: 'endMoney',
                    title: '交易金额结束'
                },
                {
                    field: 'isFd',
                    title: '是否封顶 0费率 1封顶'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>